//
//  ZYAboutUsVC.m
//  YiLin
//
//  Created by Zyark on 2018/5/31.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import "ZYAboutUsVC.h"

@interface ZYAboutUsVC ()
@property(nonatomic,strong) UIImageView *logoImageView;
@end

@implementation ZYAboutUsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    _logoImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ic_me_about_us_bg"]];
    _logoImageView.size = CGSizeMake(ZYSCREEN_W, ZYSCREEN_W);
    [self.view addSubview:_logoImageView];
    _logoImageView.centerX = self.view.centerX;
    _logoImageView.top = self.navigationView.bottom + 50;
    
    
    ZYChangeLanguage *language = [ZYChangeLanguage sharedZYChangeLanguage];
    UILabel *companyNameLabel = [self setupLabel];
    companyNameLabel.bottom = self.view.bottom - 15;
    companyNameLabel.text = [language getStringByKey:LC_ME_MAIN_ABOUT_USOMPANY_NAME];
    
    UILabel *copyrightLabel = [self setupLabel];
    copyrightLabel.bottom = companyNameLabel.bottom - 25;
    copyrightLabel.text = [language getStringByKey:LC_ME_MAIN_ABOUT_COPYRIGHT];
}

-(UILabel *)setupLabel{
    UILabel *label = [[UILabel alloc] init];
    label.size = CGSizeMake(ZYSCREEN_W, 35);
    [self.view addSubview:label];
    label.centerX = self.view.centerX;
    label.font = [UIFont systemFontOfSize:14];
    label.textColor = RGBA(102, 102, 102, 1);
    label.textAlignment = NSTextAlignmentCenter;
    return label;
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.title = [[ZYChangeLanguage sharedZYChangeLanguage] getStringByKey:LC_ME_MAIN_ABOUT_US];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
